<?php
include_once('includes/init.php');

$title= 'This is a test site .';

$smarty->assign('title',$title);

$result=$_SGLOBAL['db']->get_table(tname('links'));
$data=array(
	'lName'=>'waaqi.com',
	'lUrl'=>'http://www.waaqi.com/'
);
$db=$_SGLOBAL['db']->insert(tname('links'),$data);
echo '<pre>';print_r($db);exit;

$smarty -> display('index.tpl');

?>